package com.winbomb.simulife.impl.events;

/**
 * 高考（College Entrance Exam）事件
 */
import com.winbomb.simulife.World;
import com.winbomb.simulife.base.IChoice;
import com.winbomb.simulife.framework.Pixmap;
import com.winbomb.simulife.game.screens.HighExamScreen;
import com.winbomb.simulife.impl.BaseEvent;
import com.winbomb.simulife.impl.choices.ChangeScreenChoice;

public class HighExamEvent extends BaseEvent {

	public HighExamEvent(World world) {
		super(world);
	}

	@Override
	public Pixmap getAnimation() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getDescription() {
		return "高考";
	}

	@Override
	public IChoice[] getChoices() {
		return new IChoice[] { new ChangeScreenChoice("参加高考", HighExamScreen.class) };
	}

	@Override
	public boolean isEnable() {
		// 17岁7月参加高考
		return master.getAgeYear() == 17 && master.getAgeMonth() == 7;
	}

}
